list1 = [1, 2, 3, 2, 2, 1, 2, 4, 6, 7, 9, 7, 4, 3, 1, 2, 4, 6, 7]
# print(list1, type(list1))
# 实现列表去重，将列表转化为集合
# s1 = set(list1)
# print(s1, type(s1))
# l1 = list(s1)
# print(l1, type(l1))
# print(list(set(list1)))

# 列表转元组
t1 = tuple(list1)
print(t1,type(t1))
# 元组转集合
s2 = set(t1)
print(s2,type(s2))

